import React from 'react'
import { Input, Modal } from 'antd'

const { TextArea } = Input
const ApplicationModal = ({isApplicationModalOpen, submitApplication, closeApplicationModalOpen, changeReason, reason}) => {
  return <Modal
    title='系列申请 | 申请理由'
    visible={isApplicationModalOpen}
    onOk={submitApplication}
    width='50%'
    cancelText='取消'
    okText='确定'
    onCancel={closeApplicationModalOpen}
  >
    <TextArea rows={10} onChange={changeReason} value={reason} />
  </Modal>
}

export default ApplicationModal
